c05adf

c05adf © Numerical Algorithms Group, 2002.

Purpose

C05ADF Zero of continuous function in given interval, Bus and Dekker algorithm

Synopsis

[x,ifail] = c05adf(a,b,epslon,f<,eta,ifail>)

Description

 
 The routine attempts to obtain an approximation to a simple zero 
 of the function f(x) given an initial interval [a,b] such that 
 f(a)*f(b)<=0. 
 
 The approximation x to the zero (alpha) is determined so that one
 or both of the following criteria are satisfied:
 
      (i) |x-alpha|<EPSLON,
 
      (ii) |f(x)|<ETA.
 

Parameters

c05adf

Required Input Arguments:

a                                     real
b                                     real
epslon                                real
f                                     function (User-Supplied)

Optional Input Arguments:                       <Default>

eta                                   real     0
ifail                                 integer  -1

Output Arguments:

x                                     real
ifail                                 integer